#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
#echo "begin copy sql "
#cp ./home/bs/docker/sql/ry_20220814.sql /home/bs/docker/mysql/db
#cp ./home/bs/docker/sql/ry_config_20220510.sql /home/bs/docker/mysql/db
#
## copy html
#echo "begin copy html "
#cp -r ./home/bs/docker/bs-ui/dist/** /home/bs/docker/nginx/html/dist


# copy jar
echo "begin copy bs-gateway "
cp /home/bs/app/bs-gateway-exec.jar /home/bs/docker/bs/gateway/jar

echo "begin copy bs-auth "
cp /home/bs/app/bs-auth-exec.jar /home/bs/docker/bs/auth/jar

echo "begin copy bs-visual "
cp /home/bs/app/bs-visual-monitor-exec.jar  /home/bs/docker/bs/visual/monitor/jar

echo "begin copy bs-modules-system "
cp /home/bs/app/bs-modules-system-exec.jar /home/bs/docker/bs/modules/system/jar

echo "begin copy bs-modules-file "
cp /home/bs/app/bs-modules-file-exec.jar /home/bs/docker/bs/modules/file/jar

echo "begin copy bs-modules-job "
cp /home/bs/app/bs-modules-job-exec.jar /home/bs/docker/bs/modules/job/jar

echo "begin copy bs-modules-gen "
cp /home/bs/app/bs-modules-gen-exec.jar /home/bs/docker/bs/modules/gen/jar

echo "begin copy bs-modules-qrcode "
cp /home/bs/app/bs-modules-qrcode-exec.jar /home/bs/docker/bs/modules/qrcode/jar

echo "begin copy bs-modules-equip "
cp /home/bs/app/bs-modules-equip-exec.jar /home/bs/docker/bs/modules/equip/jar

echo "begin copy bs-modules-patrol "
cp /home/bs/app/bs-modules-patrol-exec.jar /home/bs/docker/bs/modules/patrol/jar

echo "begin copy bs-modules-defect "
cp /home/bs/app/bs-modules-defect-exec.jar /home/bs/docker/bs/modules/defect/jar

